<template>
  <div>
    <transition name="fade">
      <router-view></router-view>
    </transition>
    <theme-setting/>
  </div>
</template>

<script>
import themeSetting from '@/views/common/themeSetting/themeSetting'
export default {
    mounted () {
      window.addEventListener('beforeunload', e => {
        this.$http({
          url: this.$http.adornUrl('/sys/offline'),
          method: 'get',
          params: this.$http.adornParams()
        }).then(({ data }) => {
          if (data && data.code === 0) {
            console.log('用户已离线');
          }
        });
      });
    },
    components: {
      themeSetting
    }
};
</script>
<style>
  @import 'views/common/printtemplate/print.css';
  
.tips {
  margin-left: 20px;
  font-size: 12px;
  color: #999;
}
.mod-menu__icon-list {
  max-height: 180px;
  padding: 0;
  overflow-y: auto !important;
  margin: 0px !important;
}
</style>
